const { ObjectId } = require("mongodb");
const Router = require("koa-router");
const main = require("../models");
const router = new Router();
router.get("/detail", async ctx => {
    var { _id } = ctx.query;
    console.log(_id)
    var talbe = await main("member");
    var result = await talbe.find({ _id: ObjectId(_id) }).toArray();
    ctx.body = result
})
module.exports = router;